﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div id="summary">
    <div id="cart">
    <% if (Request.IsAuthenticated) { %>
        <span class="summary">
            Hola <b><%= Html.Encode(Page.User.Identity.Name) %></b>
        </span>
        [ <%= Html.ActionLink("Salir", MVC.Account.LogOff()) %> ]
        <div>
            <%= Html.ActionLink("Cambio de Clave", MVC.Account.ChangePassword())%>
        </div>
    <% } else { %> 
        [ <%= Html.ActionLink("Entrar", MVC.Account.LogOn()) %> ]
    <% } %>
    </div>
    <div id="dateTime">
        <b>Fecha: </b><span id="spnDate"></span>&nbsp;
        <b>Hora: </b><span id="spnTime"></span>
    </div>
</div>